<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<!--
<meta http-equiv="content-style-type" content="text/css; charset=UTF-8" />
<meta http-equiv="content-script-type" content="text/javascript; charset=UTF-8" />
-->

<title>GadgetFreak</title>

<link rel="stylesheet" type="text/css" href="GadgetFreak.css" />
<link rel="stylesheet" type="text/css" href="jquery-ui.css" />

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery-ui.min.js"></script>
<script type="text/javascript" src="gadget-freak.js"></script>

</head>
<body>
    <div class="header">
        <h1 class="main_title">GadgetFreak</h1>
    </div>
    <div class="wrapper">
        <div class="login">
            <h2 class="login_title">PRIJAVA</h2>

            <form id="form_login" action="login.php" method="post">
                <p>
                    <label>Uporabniško ime<br />
                    <input type="text" id="username" size="30" maxlength="60" />
                    </label><br />
                    <label>Geslo<br />
                    <input type="password" id="password" size="30" maxlength="50" />
                    </label><br />
                    <span id="format_err">Niste vnesli vseh podatkov.</span><br />
                </p>
                <p>
                    <label> <input type="checkbox" id="cb_remember_me" value="remember" />Zapomni si me
                    </label>
                </p>   
                <p>
                    <input type="submit" value="Prijava" onclick="onPrijavi()" />
                    <input type="button" value="Registracija" onclick="initRegistration()" />
                </p>
            </form>
            
        </div>
        
        <div id="dialog_registration" title="Registracija">
            <form id="form_registration" action="register.php" method="post">
                <p>
                    <label>Uporabniško ime<br /> <input type="text" id="registration_username" size="30"
                        maxlength="60" onblur="checkUsername()" />
                    </label>
                    <span id="format_err_username">Neveljaven format.</span><br />
                    
                    <label>Ime<br /> <input type="text" id="name" size="30" maxlength="60"
                        onblur="checkName()" />
                    </label>
                    <span id="format_err_name">Neveljaven format.</span><br />
                    
                    <label>Priimek<br /> <input type="text" id="surname" size="30" maxlength="60"
                        onblur="checkSurname()" />
                    </label>
                    <span id="format_err_surname">Neveljaven format.</span><br />
                   
                    <label>Email<br /> <input type="text" id="registration_email" size="30"
                        maxlength="60" onblur="checkRegistrationEmail()" />
                    </label>
                    <span id="format_err_registration_email">Neveljaven format.</span><br />
                    
                    <label>Email (ponovno)<br /> <input type="text" id="registration_email_repeated"
                        size="30" maxlength="60" />
                    </label><br />
                    
                    <label>Geslo<br /> <input type="password" id="registration_password" size="30" maxlength="50"
                        onblur="checkRegistrationPassword()" />
                    </label>
                    <span id="format_err_registration_password">Napaka (vsaj 4 alfanumericni znaki).</span><br />
                    
                    <label>Geslo (ponovno)<br /> <input type="password" id="registration_password_repeated"
                        size="30" maxlength="50" />
                    </label><br />
                    <span id="registration_format_err">Manjkajoči ali neujemajoči podatki!</span><br />
                </p>  
            </form>
        </div>
    </div>
    <div class="footer">Copyright © 2011 FRI SP-S15</div>
</body>
</html>
